package typejump.commands;

import typejump.TypeJump;
import typejump.engine.GameEngine;
import typejump.objects.GameObject;
import typejump.objects.Actor;

public class DevRaiseGround implements TextCommand {

	@Override
	public boolean matches(String command) {
		return command.equalsIgnoreCase("dev raise ground");
	}

	@Override
	public void act(String command) {
		Actor p = TypeJump.getInst().getPlayer();
		GameObject go = p.getStandingOn();
		if (go != null) {
			go.accelerate(0, -50);
			GameEngine.addTextEffect("RAISE GROUND", "dev.raise.ground");
		}
	}

}
